
using System;
using System.Runtime.InteropServices;

namespace Gdk
{
    public class Graphics
    {
        private Graphics() { }

        [DllImport("libgdk-x11-2.0")]
        internal static extern IntPtr gdk_cairo_create(IntPtr handle);

        public static Cairo.Context CreateDrawable(Gdk.Drawable drawable)
        {
            return new Cairo.Context(gdk_cairo_create(drawable.Handle));
        }
    }
}